/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.ms;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 整改情况表实体类
 *
 */
@Data
@TableName("ms_rectification_situation")
@EqualsAndHashCode(callSuper = true)
public class RectificationSituation extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单据编码
	*/
		private String code;

	/**
	 * 填报企业
	 */
	private String fillCompanyId;

	/**
	 * 填报年月
	 */
	private String fillDate;

	/**
	 * 整改情况
	 */
	private String rectificationSituation;

	/**
	 * 整改完成时间
	 */
	private String rectificationEndDate;

	/**
	 * 已整改金额
	 */
	@TableField(value = "rectification_end_money",updateStrategy = FieldStrategy.IGNORED)
	private BigDecimal rectificationEndMoney;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 问题情况表id
	 */
	private String issueSituationId;

	/**
	* 审批人
	*/
		private String approvedUser;
	/**
	* 审批时间
	*/
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
		private Date approvedTime;
	/**
	* 审批意见
	*/
		private String approvedOpinion;
	/**
	* 乐观锁字段
	*/
		private Integer tsVersion;
	/**
	* 审批流主键
	*/
		private String formType;
	/**
	* 备选1
	*/
		private String def1;
	/**
	* 备选2
	*/
		private String def2;
	/**
	* 备选3
	*/
		private String def3;
	/**
	* 备选4
	*/
		private String def4;
	/**
	* 备选5
	*/
		private String def5;
	/**
	* 备选6
	*/
		private String def6;
	/**
	* 备选7
	*/
		private String def7;
	/**
	* 备选8
	*/
		private String def8;
	/**
	* 备选9
	*/
		private BigDecimal def9;
	/**
	* 备选10
	*/
		private BigDecimal def10;
	/**
	* 备选11
	*/
		private BigDecimal def11;
	/**
	* 备选12
	*/
		private BigDecimal def12;
	/**
	* 备选13
	*/
		private BigDecimal def13;
	/**
	* 备选14
	*/
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
		private Date def14;
	/**
	* 备选15
	*/
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
		private Date def15;
	/**
	* 备选16
	*/
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
		private Date def16;
	/**
	* 备选17
	*/
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
		private Date def17;
	/**
	* 备选18
	*/
	@JsonSerialize(
		using = ToStringSerializer.class
	)
		private Long def18;
	/**
	* 备选19
	*/
	@JsonSerialize(
		using = ToStringSerializer.class
	)
		private Long def19;
	/**
	* 备选20
	*/
	@JsonSerialize(
		using = ToStringSerializer.class
	)
		private Long def20;

	@TableField(exist = false)
	@ApiModelProperty(value = "附件")
	private List<HashMap> docList;

	@ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
	private String dataSource;

	@ApiModelProperty(value = "数据来源id", required = true)
	private String dataSourceId;

	@ApiModelProperty("一体化附件")
	@TableField(exist = false)
	private String attachIds;
	@ApiModelProperty(value = "具体问题")
	private String contentSketch;
	@ApiModelProperty(value = "问题概述")
	private String problemDescription;//问题概述  新增 2000
	@ApiModelProperty(value = "违反条例")
	private String violateTerm;//违反条款   新增  2000
	/**
	 * 督改措施
	 */
	@ApiModelProperty(value = "整改措施")
	private String changeMeasures;
	@ApiModelProperty(value = "整改建议")
	private String changeProposal;
	/**
	 * 限期整改日期
	 */
	@ApiModelProperty(value = "整改时限")
	private String deadlineDate;
	@ApiModelProperty(value = "责任领导")
	private String obligationLeader;
	@ApiModelProperty(value = "责任单位")
	private String companyId;
	@ApiModelProperty(value = "问题类型")
	private String issueType;
}
